(#1)
immu Offline
 
Posts: 5
Join Date: Feb 2011
[^] Arrow (site list). - 02-03-2011, 04:02 PM

Ok make sure you give thanks for this mod even tho its so simple.

OPEN (funcs.php).
FIND

Code:
    if($fetch_site) {
    $download_site = mysql_query("SELECT name as sname, url as surl, FROM wcddl_sites WHERE id = '".addslashes($row['sid'])."'");


CHANGE (sql)

Code:
    $download_site = mysql_query("SELECT name as sname, url as surl, id as sssid FROM wcddl_sites WHERE id = '".addslashes($row['sid'])."'");


OPEN (index.php)
FIND

Code:
    $fetch_downloads = true;

CHANGE

Code:
    $fetch_downloads = true;
    $fetch_site = TRUE;


FIND(in index.php).

Code:
    <td><strong>Title</strong></td><td>Views</td>

CHANGE

l
Code:
    <td><strong>Title</strong></td><td>Views</td><td>Site</td>


FIND

Code:
    foreach($downloads as $dl) {


ADD AFTER

Code:
    if(preg_match("/".$dl[sssid]."/",$inarray)){ // if its there
       $dl[sname] = '^';         
    }else{
       $dl[sname] = '<b>'.$dl[sname].'</b>';
       }

FIND (just after the table).
Code:
    <?php    }     ?>


CHANGE (add the var).

Code:
    <?php $inarray = $dl[sssid];   }     ?>


that should give you the arrow list as seen on benzoddl.org

if you want an image or summat you can change

Code:
    $dl[sname] = '^';


TO

Code:
    $dl[sname] = '<img src="arrow.gif">';


hope you enjoy this and also if you would like any feature on your site you can pay a small fee for this to be coded my our good team of programmers. please PM me or JmZ for more information on this.

thanks
(#2)
jomasaco Offline
 
Posts: 21
Join Date: May 2010
02-05-2011, 04:12 PM

This is for V1

Not test but whit a small change can work in V2
(#3)
WJManiaC Offline
 
Posts: 12
Join Date: Dec 2011
12-25-2011, 08:12 AM

Any update or any other mod that is for wcddl2 that works like this ?

Bookmarks

Tags
arrow, list, site

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




Powered by vBulletin


Content Relevant URLs by vBSEO